/* 全局样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
}

/* 主内容区域铺满 */
.el-main {
  padding: 20px !important;
  width: 100% !important;
}

/* Element Plus 样式覆盖 */

/* 侧边栏菜单 */
.sidebar-menu .el-menu-item {
  border-radius: 0 !important;
  margin: 0 !important;
  padding-left: 20px !important;
  transition: all 0.2s ease !important;
}

.sidebar-menu .el-menu-item:hover {
  background: #f5f5f5 !important;
  color: #1890ff !important;
}

.sidebar-menu .el-menu-item.is-active {
  background: #e6f7ff !important;
  color: #1890ff !important;
  border-right: 3px solid #1890ff;
  font-weight: 500;
}

/* 卡片样式 */
.el-card {
  border-radius: 8px !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.el-card__header {
  border-bottom: 1px solid #e8e8e8 !important;
  padding: 18px 20px !important;
  background: #fafafa !important;
  font-weight: 600 !important;
  color: #333 !important;
}

/* 表格样式 */
.el-table {
  border-radius: 6px !important;
  overflow: hidden;
}

.el-table th {
  background: #fafafa !important;
  color: #333 !important;
  font-weight: 500 !important;
}

.el-table tr:hover > td {
  background: #f5f5f5 !important;
}

/* 按钮样式 */
.el-button {
  border-radius: 4px !important;
  font-weight: 400 !important;
  transition: all 0.2s ease !important;
  border: 1px solid #d9d9d9 !important;
}

.el-button--primary {
  background: #1890ff !important;
  border-color: #1890ff !important;
  color: white !important;
}

.el-button--primary:hover {
  background: #40a9ff !important;
  border-color: #40a9ff !important;
}

.el-button--danger {
  background: white !important;
  border-color: #ff4d4f !important;
  color: #ff4d4f !important;
}

.el-button--danger:hover {
  background: #ff4d4f !important;
  color: white !important;
}

/* 标签样式 */
.el-tag {
  border-radius: 4px !important;
  border: none !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
}

/* 分页样式 */
.el-pagination {
  justify-content: center !important;
}

.el-pagination .el-pager li {
  border-radius: 4px !important;
}

.el-pagination .el-pager li.is-active {
  background: #1890ff !important;
  color: white !important;
}

/* 下拉菜单 */
.el-dropdown-menu {
  border-radius: 6px !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* 对话框样式 */
.el-dialog {
  border-radius: 8px !important;
}

.el-dialog__header {
  border-bottom: 1px solid #e8e8e8 !important;
  padding: 20px !important;
  background: #fafafa !important;
}

.el-dialog__title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

.el-dialog__body {
  padding: 20px !important;
}

.el-dialog__footer {
  border-top: 1px solid #e8e8e8 !important;
  padding: 15px 20px !important;
}

/* 输入框样式 */
.el-input__wrapper {
  border-radius: 4px !important;
  box-shadow: 0 0 0 1px #d9d9d9 inset !important;
  transition: all 0.2s ease !important;
}

.el-input__wrapper:hover {
  box-shadow: 0 0 0 1px #40a9ff inset !important;
}

.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #1890ff inset !important;
}

/* 选择框样式 */
.el-select .el-input__wrapper {
  border-radius: 4px !important;
}

/* 表单样式 */
.el-form-item__label {
  font-weight: 500 !important;
  color: #333 !important;
}

/* 头像 */
.el-avatar {
  background: #1890ff !important;
}

/* 图标 */
.el-icon {
  vertical-align: middle;
}

/* 统一过渡时间 */
* {
  transition-duration: 0.2s !important;
}

